//
//  WFCollectionViewLayout.h
//  谷居
//
//  Created by dllo on 16/6/20.
//  Copyright © 2016年 刘万方. All rights reserved.
//

#import <UIKit/UIKit.h>

@class WFCollectionViewLayout;
@protocol WFCollectionLayoutDelegate <NSObject>

- (CGFloat)layout:(WFCollectionViewLayout *)layout
heightFroItenAtIndexPath:(NSIndexPath *)indexPath
            Width:(CGFloat)widthh;

@end


@interface WFCollectionViewLayout : UICollectionViewLayout

/** 指定有多少列. */
@property (nonatomic, assign) NSInteger columnCounts;

/** 设置距离屏幕四周的边界. */
@property (nonatomic, assign) UIEdgeInsets edgeInsets;

/** 列间距. */
@property (nonatomic, assign) NSInteger columnSpace;

/** 行间距. */
@property (nonatomic, assign) NSInteger rowSpace;

@property (nonatomic, assign)id<WFCollectionLayoutDelegate>delegate;
@end
